package cn.sofwin.day0123.homework.t02;

/**
 * 父类
 *
 * @author 仙女本仙
 * @email 1335651292@qq.com
 */
public class Person {
    /**
     * 姓名
     */
    private String name;

    /**
     * 年龄
     */
    private int age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public void work() {
        System.out.print("姓名：" + name + "  年龄：" + age + "  会：干饭,");
    }
}
